package demo07;

/**
 * 防盗门
 *
 * @author hy
 * @date 2025-03-05
 **/
public class SecurityDoor extends Door implements Security{
    @Override
    public void check() {
        System.out.println("响铃触发了");
    }
    @Override
    public int open() {
        check();
        return 0;
    }

    @Override
    public void key() {
        super.key();
    }
}
